package com.canxi.earn.app;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaIgnore;
import com.canxi.common.annotation.RepeatSubmit;
import com.canxi.common.core.controller.BaseController;
import com.canxi.common.core.domain.PageQuery;
import com.canxi.common.core.page.TableDataInfo;
import com.canxi.earn.domain.bo.CxBannerBo;
import com.canxi.earn.domain.vo.CxBannerVo;
import com.canxi.earn.service.ICxBannerService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: canxi
 * @Date: 2024/9/4 17:03
 * @Description:
 * @Package_name:com.canxi.earn.app
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/app/earn/banner")
public class CxAppBannerController  extends BaseController {
    private final ICxBannerService iCxBannerService;

    /**
     * 查询轮播图管理列表
     */
    @GetMapping("/list")
    @SaIgnore
    @RepeatSubmit()
    public TableDataInfo<CxBannerVo> list(CxBannerBo bo) {
        bo.setBannerStatus("Y");

        return iCxBannerService.queryCxBannerList(bo);
    }

}
